export const probability = (probability)=>{
	//probability为概率小数 [0,1)
	let pro = String(probability).split(".")[1]
	let temp = Math.random() * Math.pow(10,pro.length)
	if(temp<pro){
		return true
	}else{
		return false
	}
}